/* eslint valid-jsdoc: "off" */

'use strict';

/**
 * @param {Egg.EggAppInfo} appInfo app info
 */
module.exports = appInfo => {
  /**
   * built-in config
   * @type {Egg.EggAppConfig}
   **/
  const config = exports = {};

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1582514219510_9443';
  

  // add your middleware config here
  config.middleware = [];

  config.sequelize = {
    dialect: 'mysql',
    host: '106.54.77.145',
    port: 3306,
    database: 'cces',
    username: 'root', 
    password: 'asfi5op$'
  };

  config.security = {
　　csrf : {
　　　　enable: false
　　},
　　domainWhiteList: [ '*' ]
　};
  config.cors = {
    origin: '*',
    allowMethods: 'GET,HEAD,PUT,POST,DELETE,PATCH,OPTIONS'
  };
  // add your user config here
  const userConfig = {
    secret:'adlkfjuw*%#rqap974j$#&',
    cServer:[
      '192.168.166.128:3010',
      '192.168.166.128:3051',
      '192.168.166.128:3052',
      '192.168.166.128:3053'
    ]
  };

  return {
    ...config,
    ...userConfig,
  };
};
